/**
 * User: alesj
 * Date: 2004.9.29
 * Time: 11:21:50
 */

package com.generalynx.ecos.web.object;

import com.generalynx.ecos.data.User;

import java.util.Date;

public class InfoWrapper {

    private Date m_loginTime;
    private User m_user;

    public InfoWrapper(User user) {
        m_loginTime = new Date();
        m_user = user;
    }

    public Date getLoginTime() {
        return m_loginTime;
    }

    public User getUser() {
        return m_user;
    }

    public String toString() {
        return getUser().getUsername() + " > " + getLoginTime();
    }
}
